from threading import Thread, current_thread

def thread_test(name):
    print("thread %s is running ..."%current_thread().name)
    print('hello ',name)
    print('thread %s ended. '% current_thread().name)

if __name__ == '__main__':
    print('thread %s is running ...'% current_thread().name)
    # current_thread().
    print('hello world')

    # self._target(*self._args, **self._kwargs)
    # TypeError: thread_test() takes 1 positional argument but 4 were given
    t = Thread(target=thread_test, args=("test",), name="Thread Test")
    t.start()
    t.join()
    print('thread %s ended.'%current_thread().name)